package com.boarsoft.boar.demo.order.biz;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.boarsoft.boar.demo.order.entity.PocOrder;
import com.boarsoft.hibernate.biz.SimpleBizImpl;

@Component
public class PocOrderBizImpl extends SimpleBizImpl implements PocOrderBiz {

	@Override
	@Transactional(readOnly = true)
	public PocOrder get(String tenantId, int orderId) {
		// tenantId仅作为分片参数，不用于查询
		return dao.get(PocOrder.class, orderId);
	}

}